﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Org_frmO_TrainingInstitutionInput : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Org_MasterPage)this.Master).changeTitle("講習施設登録");
        ((Org_MasterPage)this.Master).HideLiArea("frmO_TrainingInstitutionInput");
        GridView1.DataSource = myTable();
        GridView1.DataBind();
    }
    public DataTable myTable()
    {
        DataTable dt = new DataTable();
        DataColumn col;
        DataRow row;
        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "1";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "2";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "3";
        dt.Columns.Add(col);

        row = dt.NewRow();
        dt.Rows.Add(row);
        for (int i = 0; i <= 5; i++)
        {
            row = dt.NewRow();
            row["1"] = " ";
            row["2"] = " ";
            row["3"] = " ";
            dt.Rows.Add(row);
        }
        return dt;
        
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmO_TrainingList.aspx");
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmO_TrainingList.aspx");
    }
}
